<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body {
            height: 2000px;
        }
    </style>
</head>

<body>

    <!-- <img src="../../美女大头照.jpg" alt=""> -->
    <script src="https://momentjs.cn/downloads/moment.js"></script>

    <script>

        window.onscroll = throttle(function () {
            alert('这是苏陈凤！！！')
        }, 2000)
        function throttle(fn, delay) {
            let t = true
            return function () {
                if (t) {
                    setTimeout(() => {
                        fn.call(this)
                        t = true
                    }, delay)
                }
                t = false
            }
        }


    </script>
</body>

</html>